#!/usr/bin/python
# File const.py

CONFIG_FILE_NAME='communication.ini'
CONFIG_NOT_COMPELET='not enough information to connect to server\n'
RESOURCE_NAME='robot'

JID='jid'
NS_ROSTER='jabber:iq:roster' 

CANNOT_CONNECT=-1
CANNOT_AUTH=-2
SUCCESS=1
FAIL=0
UNKNOW_TYPE=-3

PRESENCE='presence'
PRESENCE_SUBSCRIBE='subscribe'
PRESENCE_SUBSCRIBED='subscribed'

MESSAGE='message'
MESSAGE_CHAT='chat'

IQ='iq'
IQ_ITEM='item'
IQ_SET='set'
IQ_SUBSCRIPTION_ITEM='item'
IQ_SUBSCRIPTION='subscription'

LOG_FILE='log.txt'
LOG_FROMAT='%(asctime)s --%(name)s : %(levelname)s %(message)s'

# For robot it's input for admin it's output
PIPE_INPUT='/tmp/robot_input'
# For robot it's output for admin it's input
PIPE_OUTPUT='/tmp/robot_output'
PIPE_READ_NUMBER=80

SHELL_COMMAND='command'
SHELL_RESULT='result'
SHELL_CONTROL='command'
SHELL_UNKNOW_CODING='Unkown coding type, using utf-8 decode'
SHELL_ENCODING='utf-8'
SHELL_CONTROL_END='~~end~~'
# End const.py
